package com.atguigu.springcloud.message;


import org.springframework.util.MimeType;

/**
 * @param
 * @description: 消息工厂
 * @return
 */
public interface MessageFactory<T> {

    void send(String dest, T message);

    void send(String dest, T message, MimeType type);

    void send(String dest, T message, MimeType type, long timeOut);

    void broadcast(T message);

    void broadcast(T message, MimeType type);

    void broadcast(T message, MimeType type, long timeOut);

}
